
/* 
 * This file is part of FreeBMS - an open source battery management system
 *
 * Message Code Headers
 * 
 * NOTE: This code is designed to be compiled using SOURCEBOOST (http://www.sourceboost.com)
 */
 
/* This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
#ifndef _CODES_H_
#define _CODES_H_
 
// Serial Message Type ID Codes
#define ID_WAKEUP			0x00	// Request chips to wake up
#define ID_START_VOLT		0x01	// Request to start voltage conversion
// EMPTY					0x02
#define ID_VOLT				0x03	// Message request for voltage
// EMPTY					0x04
#define ID_SHUNT			0x05	// Message to enable/disable shunting
#define ID_PROGRAM_ID		0x06	// Message to program the chip ID
#define ID_PROGRAM_ERROR	0x07	// Message to program the error correction percentage (LEAD ACID)
#define ID_PROGRAM_MAXVOLT	0x08	// Message to program the max cutoff voltage
#define ID_PROGRAM_TIMERS	0x09	// Message to program the shunting timers
#define ID_PROGRAM_LEDS		0x0A	// Message to program LED configurations
#define ID_PROGRAM_DELAY	0x0B	// Message to program ADC shunting delay

#endif // _CODES_H_